using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class TTesion_Lesion_characteristicsMap : EntityTypeConfiguration<TTesion_Lesion_characteristics>
    {
        public TTesion_Lesion_characteristicsMap()
        {
            // Primary Key
            this.HasKey(t => t.TTLC_ID);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Range)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Shape)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Proximal_vascular_bent)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Whether_corner)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Whether_corner_extent)
                .HasMaxLength(50);

            this.Property(t => t.TTLC_Lesion_Appearance)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Calcify)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Complete_Occlusion)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Complete_Occlusion_Time)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Lesion_location_Whether_opening)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Lesions_involving_branch)
                .HasMaxLength(20);

            this.Property(t => t.TTLC_Bbifurcation_lesions_strategy)
                .IsFixedLength()
                .HasMaxLength(10);

            this.Property(t => t.TTLC_Stent_strategy)
                .IsFixedLength()
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("TTesion_Lesion_characteristics");
            this.Property(t => t.TTLC_ID).HasColumnName("TTLC_ID");
            this.Property(t => t.TTL_ID).HasColumnName("TTL_ID");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.TTLC_Range).HasColumnName("TTLC_Range");
            this.Property(t => t.TTLC_Shape).HasColumnName("TTLC_Shape");
            this.Property(t => t.TTLC_Proximal_vascular_bent).HasColumnName("TTLC_Proximal_vascular_bent");
            this.Property(t => t.TTLC_Whether_corner).HasColumnName("TTLC_Whether_corner");
            this.Property(t => t.TTLC_Whether_corner_extent).HasColumnName("TTLC_Whether_corner_extent");
            this.Property(t => t.TTLC_Lesion_Appearance).HasColumnName("TTLC_Lesion_Appearance");
            this.Property(t => t.TTLC_Calcify).HasColumnName("TTLC_Calcify");
            this.Property(t => t.TTLC_Complete_Occlusion).HasColumnName("TTLC_Complete_Occlusion");
            this.Property(t => t.TTLC_Complete_Occlusion_Time).HasColumnName("TTLC_Complete_Occlusion_Time");
            this.Property(t => t.TTLC_Lesion_location_Whether_opening).HasColumnName("TTLC_Lesion_location_Whether_opening");
            this.Property(t => t.TTLC_Lesions_involving_branch).HasColumnName("TTLC_Lesions_involving_branch");
            this.Property(t => t.TTLC_Bbifurcation_lesions_strategy).HasColumnName("TTLC_Bbifurcation_lesions_strategy");
            this.Property(t => t.TTLC_Stent_strategy).HasColumnName("TTLC_Stent_strategy");
        }
    }
}
